package stone.ast;

import java.util.List;

import ASTInterpreter.Environment;

public class BlockStmnt extends ASTList {

	public BlockStmnt(List<ASTree> list) {
		super(list);
	}
	
	public Object eval(Environment env) {
		Object result = 0;
		for(ASTree t : this) {
			if (!(t instanceof NullStmnt)) {
				result = t.eval(env);
			}
		}
		return result;
	}
}
